/*
 * @Description: 
 * @Author: zoe
 * @Date: 2024-09-09 16:34:37
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-09 16:51:07
 */
public class TestAccount{
    //main方法
    public static void main(String[] args){
        //创建一个account对象
        Account acc1 = new Account();
        Account acc2 = new Account();
        Account acc3 = new Account();
        //编译错误，直接访问private
        // acc1.id = "001";
        // acc1.balance = 999999999999.0;
        //正确的赋值方式
        acc1.setId("001");
        acc1.setBalance(0.0);
        //取值
        // System.out.println("acc1.id:"+acc1.id);
        // System.out.println("acc1.balance:"+acc1.balance);
        //正确的取值方式
        System.out.println("acc1.getId:"+acc1.getId());
        System.out.println("acc1.getBalance:"+acc1.getBalance());

    }
}
